<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>

<%
    BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
%>

          <div id="gwcswA" class="gwcswWrap">
            <div class="gwcswNav">
            <div class="gwcswNavWrap"><table width="437"><tbody><tr><td width="320" index="0">
          <div id="navigation"><a href="introduction.html">Introduction</a></div>
            </td></tr></tbody></table></div></div>
            <div class="gwcswSlots">
              <div index="1" class="gwcswSlot" style="display: block; font-size: 14px;">
                <p>Them danh muc san pham<p>
                <p>${error}</p>
  <form:form method="post" action='<%= blobstoreService.createUploadUrl("/addCategory.do") %>' enctype="multipart/form-data" commandName="category">
    <table>
    <tr>
        <td><form:label path="name">Category Name</form:label></td>
        <td><form:input path="name" /></td> 
    </tr>
    <tr>
        <td><form:label path="parentId">Parent Id</form:label></td>
        <td><form:input path="parentId" /></td>
    </tr>
      <tr>
        <td><form:label path="id">Category Id</form:label></td>
        <td><form:input path="id" /></td>
    </tr>
     <tr>
        <td><form:label path="level">Category Level</form:label></td>
        <td><form:input path="level" /></td>
    </tr>
    <tr>
        <td><s:message code="label.CategoryImage"/></td>
        <td><input type="file" name="categoryPicture"></td>
    </tr>
    <tr>
        <td colspan="2">
           <input type="submit" value="Add Category"/>
        </td>
    </tr>
    </table>  

   </form:form>
              </div>
         </div>
        </div>